﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CompareIt.Engine.Entities;
using System.ComponentModel.Composition;

namespace CompareIt.Engine.Repositories
{
    /// <summary>
    /// Defines a data source.
    /// </summary>
    [ContractType("CompareIt.Engine.Repositories.DataSourceContract", MetadataType = typeof(IDataSourceData))]
    public interface IDataSource
    {
        /// <summary>
        /// Gets or sets the connection string for the data source.
        /// </summary>
        string ConnectionString { get; set; }

        /// <summary>
        /// Gets a collection of <see cref="TableSchema"/> for the datasource.
        /// </summary>
        /// <returns></returns>
        List<TableSchema> GetTablesSchemas();

    }
}
